<?php
//------- logistic wxapp -------
namespace app\logi\validate;

use think\Validate;

class AdminLogiValidate extends Validate
{
    protected $rule = [
        //'categories' => 'require',
        'post_title' => 'require',
        'code' => 'require',
        'weight' => 'require',
    ];
    protected $message = [
        //'categories.require' => '请指定分类！',
        'post_title.require' => '订单标题不能为空！',
        'code.require' => '编号不能为空！',
        'weight.require' => '称重不能为空！',
    ];

    protected $scene = [
       'add'  => ['post_title','code','weight'],
       'edit' => ['post_title','code','weight'],
    ];
}